package yl.hs.bmipfull.pojo.salemanage;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/**
 * 作用:  销售合同发货控制信息实体类<br/>
 * 创建时间: 2021年05月27日 11时37分21秒 <br/>
 *
 * @author 张凯
 */
@DBTable(disName = "销售合同发货控制信息", mapCode = "contract_control_info")
public class ContractControlInfoEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;

    /**
     * 合同编号
     */
    private String contractSN;
    /**
     * 控制方式
     */
    private Short controlType;
    /**
     * 生效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
    private Date startTime;
    /**
     * 触发报警
     */
    private float alertValue;
    /**
     * 触发禁止
     */
    private float disabValue;

    public boolean isControlWay() {
        return controlWay;
    }

    public void setControlWay(boolean controlWay) {
        this.controlWay = controlWay;
    }

    private boolean controlWay=false;

    @Nullable
    public Long getId() {
        return id;
    }

    public void setId(@Nullable Long id) {
        this.id = id;
    }


    public String getContractSN() {
        return contractSN;
    }

    public void setContractSN(String contractSN) {
        this.contractSN = contractSN;
    }

    public Short getControlType() {
        return controlType;
    }

    public void setControlType(Short controlType) {
        this.controlType = controlType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public float getAlertValue() {
        return alertValue;
    }

    public void setAlertValue(float alertValue) {
        this.alertValue = alertValue;
    }

    public float getDisabValue() {
        return disabValue;
    }

    public void setDisabValue(float disabValue) {
        this.disabValue = disabValue;
    }

}